package com.yxuan.springboot.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @author zchao
 *    Orders实体类
 * @date 2023-05-29 14:57:28
 */
@Data
@ApiModel(description = "订单支付表")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Orders implements Serializable{

	  private static final long serialVersionUID = 1L;
	
	  @ApiModelProperty(value = "主键id（主键）")
	  private Integer id;
	  @ApiModelProperty(value = "购买用户id")
	  private String userLoginId;
	  @ApiModelProperty(value = "订单名称")
	  private String name;
	  @ApiModelProperty(value = "商品编号")
	  private String goodsId;
	  @ApiModelProperty(value = "订单编号")
	  private String orderId;
	  @ApiModelProperty(value = "总价格")
	  private BigDecimal total;
      //创建时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date createTime;
      //支付时间
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  private Date payTime;
	  @ApiModelProperty(value = "订单状态（0未支付，1已支付，2已退款，3订单取消）")
	  private String ordersState;
	  @ApiModelProperty(value = "支付宝（微信）订单号")
	  private String alipayNo;
	  @ApiModelProperty(value = "支付方式（0支付宝，1微信）")
	  private String payWay;


}
